package com.bird.infrastructure.domainconfig.user

import com.bird.user.domain.UserHandler
import com.bird.user.domain.UserRepository
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
/**
 * 用户领域服务配置
 */
@Configuration
class UserConfig {

    @Bean
    fun userHandler(userRepository: UserRepository): UserHandler {
        return UserHandler(userRepository)
    }

}